package com.jar.netty_demo.NIO.ZeroCOPY;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.StandardCharsets;

public class Client {
	public static void main(String[] args) throws IOException {
		Socket socket = new Socket(InetAddress.getLocalHost(), 7001);

		String message = "hello,world";
		OutputStream outputStream = socket.getOutputStream();
		outputStream.write(message.getBytes(StandardCharsets.UTF_8));

	}
}
